package org.skydiveapplibrary.ui;

import java.util.List;

import android.content.Context;

import org.skydiveapplibrary.data.Aircraft;

public class AircraftListAdapter extends BaseListAdapter<Aircraft>
{
	public AircraftListAdapter(
			Context context,
			List<Aircraft> aircrafts)
	{
		super(context, aircrafts);
	}

	@Override
	public long getItemId(int index)
	{
		return getItems().get(index).getId();
	}

	@Override
	protected String getText(Aircraft aircraft)
	{
		return aircraft.getName();
	}
}
